package com.czone.myfacebook;

public class Utils {
    public static String convertImageQuality(String url) {
        String convertURL = null;
        if (url.contains("_t.")) {
            convertURL = url.replaceAll("_t.", Define.PROFILE_IMAGE_QUALITY);
        } else if (url.contains("_a.")) {
            convertURL = url.replaceAll("_a.", Define.PROFILE_IMAGE_QUALITY);
        } else if (url.contains("_s.")) {
            convertURL = url.replaceAll("_s.", Define.PROFILE_IMAGE_QUALITY);
        } else if (url.contains("_q.")) {              
            convertURL = url.replaceAll("_q.", Define.PROFILE_IMAGE_QUALITY);
        }
        else {
            convertURL = url;
        }
        
        return convertURL;
    }
}
